#/usr/bin/python
#coding:UTF-8

import math

for i in range(1,10000):
    x = int(math.sqrt(i+100))
    y = int(math.sqrt(i+268))
    if( x * x == i+100 ) and ( y * y ==	i+268 ):
        print "i=%d  x=%d  y=%d  x^2=%d  y^2=%d" %(i,x,y,i+100,i+268)